package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (CpApprovalEntity)实体类
 *
 * @author huhao
 * @since 2022-06-13 9:31:21
 */
@Data
@TableName(value = "cp_approval")
@ApiModel(value = "审批表")
public class CpApprovalEntity implements Serializable {

    private static final long serialVersionUID = 7862546323883753937L;

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "审批数据类型(11-理财,12-基金,2-活动,4-贷款,5-信用卡,6-朋友圈任务,7-早报)")
    private Integer itemType;

    @ApiModelProperty(value = "审批数据id")
    private String itemId;

    @ApiModelProperty(value = "审核人id")
    private Integer approvalUserId;

    @ApiModelProperty(value = "审核人username")
    private String approvalUserName;

    @ApiModelProperty(value = "审批数据类型(1-同意,2-拒绝')")
    private Integer approvalType;

    @ApiModelProperty(value = "审批前数据状态")
    private Integer approvalPreState;

    @ApiModelProperty(value = "审批后数据状态")
    private Integer approvalPostState;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @TableLogic(value="0", delval="1")
    @ApiModelProperty(value = "删除标记,1:已删除,0:正常")
    private Integer delFlag;

    @ApiModelProperty(value = "用户所属租户id")
    private Integer tenantId;

}
